package com.ruoyi.energize.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单商品信息表对象 cash_order_goods
 * 
 * @author ruoyi
 * @date 2023-05-26
 */
public class CashOrderGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long autoId;

    /** 定单ID */
    @Excel(name = "定单ID")
    private String oid;

    /** 商品ID */
    private Long id;

    /** 条形码 */
    @Excel(name = "条形码")
    private String barCode;

    /** 0正常1称重2无条码3大包装 */
    @Excel(name = "0正常1称重2无条码3大包装")
    private Integer type;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal unitPrice;

    /** 实收单价 */
    @Excel(name = "实收单价")
    private BigDecimal realUnitPrice;

    /** 数量 */
    @Excel(name = "数量")
    private Integer count;

    /** 规格 */
    @Excel(name = "规格")
    private String norm;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 设备id */
    @Excel(name = "设备id")
    private String deviceId;

    /** 分区ID */
    @Excel(name = "分区ID")
    private Long fid;

    /** 客户id */
    @Excel(name = "客户id")
    private Long cid;

    /** 进货价 */
    @Excel(name = "进货价")
    private BigDecimal purPrice;

    /** 大包装数量商品1 */
    @Excel(name = "大包装数量商品1")
    private Integer conversionNumber1;

    /** 大包装商品数量2 */
    @Excel(name = "大包装商品数量2")
    private Integer conversionNumber2;

    /** 大包装条形码1 */
    @Excel(name = "大包装条形码1")
    private String bigBarcode1;

    /** 大包装商品条形码2 */
    @Excel(name = "大包装商品条形码2")
    private String bigBarcode2;

    /** 大包装价格1 */
    @Excel(name = "大包装价格1")
    private BigDecimal bigPrice1;

    /** 大包装价格2 */
    @Excel(name = "大包装价格2")
    private BigDecimal bigPrice2;

    /** 状态0正常2异常已收银 */
    @Excel(name = "状态0正常2异常已收银")
    private Integer state;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 订单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 修改前库存 */
    @Excel(name = "修改前库存")
    private Integer lastStock;

    /** 修改后库存 */
    @Excel(name = "修改后库存")
    private Integer nowStock;

    /** 是否雪茄烟 0不是 1是 */
    @Excel(name = "是否雪茄烟 0不是 1是")
    private Integer isCigar;

    /** 是否卷烟  0否 1是  2 补差价 */
    @Excel(name = "是否卷烟  0否 1是  2 补差价")
    private Integer isTobacco;

    /** cash_order.id */
    @Excel(name = "cash_order.id")
    private Long cashOrderId;

    /** 门店ID */
    @Excel(name = "门店ID")
    private Integer storeId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String manageUnitUuid;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    public void setAutoId(Long autoId) 
    {
        this.autoId = autoId;
    }

    public Long getAutoId() 
    {
        return autoId;
    }
    public void setOid(String oid) 
    {
        this.oid = oid;
    }

    public String getOid() 
    {
        return oid;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBarCode(String barCode) 
    {
        this.barCode = barCode;
    }

    public String getBarCode() 
    {
        return barCode;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }
    public void setRealUnitPrice(BigDecimal realUnitPrice) 
    {
        this.realUnitPrice = realUnitPrice;
    }

    public BigDecimal getRealUnitPrice() 
    {
        return realUnitPrice;
    }
    public void setCount(Integer count) 
    {
        this.count = count;
    }

    public Integer getCount() 
    {
        return count;
    }
    public void setNorm(String norm) 
    {
        this.norm = norm;
    }

    public String getNorm() 
    {
        return norm;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }
    public void setFid(Long fid) 
    {
        this.fid = fid;
    }

    public Long getFid() 
    {
        return fid;
    }
    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setPurPrice(BigDecimal purPrice) 
    {
        this.purPrice = purPrice;
    }

    public BigDecimal getPurPrice() 
    {
        return purPrice;
    }
    public void setConversionNumber1(Integer conversionNumber1) 
    {
        this.conversionNumber1 = conversionNumber1;
    }

    public Integer getConversionNumber1() 
    {
        return conversionNumber1;
    }
    public void setConversionNumber2(Integer conversionNumber2) 
    {
        this.conversionNumber2 = conversionNumber2;
    }

    public Integer getConversionNumber2() 
    {
        return conversionNumber2;
    }
    public void setBigBarcode1(String bigBarcode1) 
    {
        this.bigBarcode1 = bigBarcode1;
    }

    public String getBigBarcode1() 
    {
        return bigBarcode1;
    }
    public void setBigBarcode2(String bigBarcode2) 
    {
        this.bigBarcode2 = bigBarcode2;
    }

    public String getBigBarcode2() 
    {
        return bigBarcode2;
    }
    public void setBigPrice1(BigDecimal bigPrice1) 
    {
        this.bigPrice1 = bigPrice1;
    }

    public BigDecimal getBigPrice1() 
    {
        return bigPrice1;
    }
    public void setBigPrice2(BigDecimal bigPrice2) 
    {
        this.bigPrice2 = bigPrice2;
    }

    public BigDecimal getBigPrice2() 
    {
        return bigPrice2;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setLastStock(Integer lastStock) 
    {
        this.lastStock = lastStock;
    }

    public Integer getLastStock() 
    {
        return lastStock;
    }
    public void setNowStock(Integer nowStock) 
    {
        this.nowStock = nowStock;
    }

    public Integer getNowStock() 
    {
        return nowStock;
    }
    public void setIsCigar(Integer isCigar) 
    {
        this.isCigar = isCigar;
    }

    public Integer getIsCigar() 
    {
        return isCigar;
    }
    public void setIsTobacco(Integer isTobacco) 
    {
        this.isTobacco = isTobacco;
    }

    public Integer getIsTobacco() 
    {
        return isTobacco;
    }
    public void setCashOrderId(Long cashOrderId) 
    {
        this.cashOrderId = cashOrderId;
    }

    public Long getCashOrderId() 
    {
        return cashOrderId;
    }
    public void setStoreId(Integer storeId) 
    {
        this.storeId = storeId;
    }

    public Integer getStoreId() 
    {
        return storeId;
    }
    public void setManageUnitUuid(String manageUnitUuid) 
    {
        this.manageUnitUuid = manageUnitUuid;
    }

    public String getManageUnitUuid() 
    {
        return manageUnitUuid;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("autoId", getAutoId())
            .append("oid", getOid())
            .append("id", getId())
            .append("barCode", getBarCode())
            .append("type", getType())
            .append("unitPrice", getUnitPrice())
            .append("realUnitPrice", getRealUnitPrice())
            .append("count", getCount())
            .append("norm", getNorm())
            .append("name", getName())
            .append("deviceId", getDeviceId())
            .append("fid", getFid())
            .append("cid", getCid())
            .append("purPrice", getPurPrice())
            .append("conversionNumber1", getConversionNumber1())
            .append("conversionNumber2", getConversionNumber2())
            .append("bigBarcode1", getBigBarcode1())
            .append("bigBarcode2", getBigBarcode2())
            .append("bigPrice1", getBigPrice1())
            .append("bigPrice2", getBigPrice2())
            .append("state", getState())
            .append("createdAt", getCreatedAt())
            .append("orderTime", getOrderTime())
            .append("lastStock", getLastStock())
            .append("nowStock", getNowStock())
            .append("isCigar", getIsCigar())
            .append("isTobacco", getIsTobacco())
            .append("cashOrderId", getCashOrderId())
            .append("storeId", getStoreId())
            .append("manageUnitUuid", getManageUnitUuid())
            .append("unit", getUnit())
            .toString();
    }
}
